<?php
namespace Admin\Model;

use Think\Model;

class FriendModel extends Model
{
    protected $tableName = 'friend';
    protected $_validate = array(
    	array('title', 'require', '标题必填'),
        array('des', 'require', '标题必填'),
        array('url', 'url', '链接格式不正确')
    );

    protected $_auto = array(
        array('endtime', 'strtotime', 3, 'function'),
        array('ctime', 'time', 3, 'function')
    );

}
